package com.zkingsoft.actions.admin;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zkingsoft.actions.common.BaseController;
import com.zkingsoft.model.Message;
import com.zkingsoft.model.PaginationVO;
import com.zkingsoft.pojo.AjaxResult;
import com.zkingsoft.services.MessageService;

/**
 * @project MatrixCms
 * @package com.zkingsoft.actions.admin
 * @class MessageController.java
 * @author Matrix-J E-mail:<935090232@qq.com>
 * @date 2016年4月21日10:31
 * @description 展位管理
 */
@Controller
@RequestMapping(value = "/admin/message")
public class MessageController extends BaseController {


	@Resource
	private MessageService currentService;


	@RequestMapping(value = "/showList")
	public @ResponseBody AjaxResult showList(HttpServletRequest request, Message Message, PaginationVO pageVo) {
		Message.setCompanyId(getMe(request).getCompanyId());
		return showList(currentService, Message, pageVo);
	}
	
	@RequestMapping(value = "/del")
	public @ResponseBody AjaxResult del(String keys) {
		return remove(currentService, keys);
	}

	
}